//
//  GoogleProduct.h
//  Product Hunter
//
//  Created by Han Wang on 11/13/11.
//  Copyright (c) 2011 The Masters. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GTLShopping.h"

@interface GoogleProduct : NSObject

@property (nonatomic, retain) UITableView *tableView;

- (void)updateData;
- (GTLShoppingModelProduct *)getProduct:(GTLShoppingProduct *)item;
- (NSString *)getProductTitle:(GTLShoppingProduct *)item;
- (NSString *)getProductLink:(GTLShoppingProduct *)item;
- (GTLShoppingModelProductImagesItem *)getProductImage:(GTLShoppingProduct *)item;
- (GTLShoppingModelProductImagesItemThumbnailsItem *)getProductImageThumbnail:(GTLShoppingProduct *)item;
- (NSString *)getProductThumbNailLink:(GTLShoppingProduct *)item;
- (GTLShoppingModelProductInventoriesItem *)getProductInventory:(GTLShoppingProduct *)item;
- (NSNumber *)getProductPrice:(GTLShoppingProduct *)item;
- (NSString *)getProductRetailerName:(GTLShoppingProduct *)item;
- (GTLQueryShopping *)makeShoppingQuery:(NSString *)item :(NSString *)rankBy :(NSString *)thumbnailSize :(NSString *)country :(int)maxResults;
- (void)searchProduct:(NSString *)searchItem storedAt:(NSMutableArray *)products;

@end
